package com.team407.cheyoubang.parse;

import org.json.JSONException;
import org.json.JSONObject;

public class BaseParseData extends ParseData {
	public static final String RESULT_CODE = "resultCode";
	public static final String ERROR_INFO = "errorInfo";
	public static final String CURRENT_ACTION_CODE = "currentActionCode";
	@Override
	public Result getResult(JSONObject jsonObject) throws JSONException {
		String resultCode = jsonObject.getString("resultCode");
		String errorInfo = jsonObject.getString("errorInfo");
		String currentActionCode = jsonObject.getString("currentActionCode");
		mResult.put(RESULT_CODE, resultCode);
		mResult.put(ERROR_INFO, errorInfo);
		mResult.put(CURRENT_ACTION_CODE, currentActionCode);
		return mResult;
	}

}
